#!/bin/bash
#计算 1+2+3+...+100

sum=0
i=0
while [ "$i" != "100" ]
do
    i=$(($i+1))
    sum=$(($sum+$i))
done

echo "The result of '1+2+...+100' is ==> $sum"
